package com.ruibang.glass.equipment.entity.device;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel
@TableName(value = "g_equipment_urgent_repair")
public class RepairUrgent extends BaseEntity implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "区域")
    private String area;
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    @ApiModelProperty(value = "专业")
    private String professional;
    @ApiModelProperty(value = "故障原因")
    private String faultReason;
    @ApiModelProperty(value = "负责人")
    private String responsiblePerson;
    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "检修时长")
    private Float repairDuration;
    @ApiModelProperty(value = "检修人数")
    private Integer repairPersonnel;
    @ApiModelProperty(value = "施工单位")
    private String contractor;
    @ApiModelProperty(value = "抢修结果")
    private String urgentResult;
    @ApiModelProperty(value = "负责人Id")
    private String responsiblePersonId;

    @TableField(exist = false)
    private List<String> ids;
    @TableLogic
    private String isDelete;


}
